package com.shop.trade.atom.controller;

import com.shop.common.model.param.trade.OrderPayInput;
import com.shop.common.tmpl.BaseController;
import com.shop.trade.atom.ITradeAtomApi;
import com.shop.trade.atom.atomsvc.IPayAtomSvc;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 *
 * @author zhoulk
 * @date: 2019年05月10日  23:58
 */
@RestController
public class TradeAtomApi extends BaseController implements ITradeAtomApi {

    @Autowired
    IPayAtomSvc payAtomSvc;

    @Override
    public Integer addPayOrder(@RequestBody OrderPayInput orderPayInput) {
        return payAtomSvc.insertOrderPay(orderPayInput).getData();
    }
}
